package com.gtw.modules.api.service.impl;

import com.gtw.modules.api.service.TbGroupbuyUserService;
import com.gtw.modules.dao.TbGroupbuyUserDao;
import com.gtw.modules.entity.TbGroupbuyUser;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * Created by wuye on 2018/3/15.
 */
@Service
public class TbGroupbuyUserServiceImpl implements TbGroupbuyUserService {

    @Autowired
    private TbGroupbuyUserDao tbGroupbuyUserDao;

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return tbGroupbuyUserDao.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(TbGroupbuyUser record) {
        return tbGroupbuyUserDao.insert(record);
    }

    @Override
    public int insertSelective(TbGroupbuyUser record) {
        return tbGroupbuyUserDao.insertSelective(record);
    }

    @Override
    public TbGroupbuyUser selectByPrimaryKey(Integer id) {
        return tbGroupbuyUserDao.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(TbGroupbuyUser record) {
        return tbGroupbuyUserDao.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(TbGroupbuyUser record) {
        return tbGroupbuyUserDao.updateByPrimaryKey(record);
    }

    @Override
    public List<TbGroupbuyUser> queryByUserId(Map<String, Object> map) {
        return tbGroupbuyUserDao.queryByUserId(map);
    }

    @Override
    public int queryTotal(Map<String, Object> map) {
        return tbGroupbuyUserDao.queryTotal(map);
    }

    @Override
    public List<TbGroupbuyUser> queryByGroupId(Integer groupid) {
        return tbGroupbuyUserDao.queryByGroupId(groupid);
    }

    @Override
    public List<TbGroupbuyUser> queryByuserid(Integer userid) {
        return tbGroupbuyUserDao.queryByuserid(userid);
    }

    @Override
    public List<TbGroupbuyUser> foundByUserid(Integer userid) {
        return tbGroupbuyUserDao.foundByUserid(userid);
    }

    @Override
    public List<TbGroupbuyUser> queryByLeader(Integer groupbuyid) {
        return tbGroupbuyUserDao.queryByLeader(groupbuyid);
    }

    @Override
    public List<TbGroupbuyUser> queryByAllLeader() {
        return tbGroupbuyUserDao.queryByAllLeader();
    }

    @Override
    public List<TbGroupbuyUser> queryByTeam(Map<String, Object> map) {
        return tbGroupbuyUserDao.queryByTeam(map);
    }

}
